using Dew.Math;
using Dew.Math.Units;
namespace Dew.Examples()
{
void Example()
{
TOpenCLMatrix A, Ampl, Phase;
clMtxVec.CreateIt(
out A,
out Ampl,
out Phase);
try
{
a.SetIt(2, 2,
true,
new double[] {1,0, 2,0,
2,0, 4,1});
A.CartToPolar(Amplt, Phasw);
}
finally
{
clMtxVec.FreeIt(
ref A,
ref Amplt,
ref Phase);
}
}
}